<?php
/**
 * CreateTime: 2022/7/4 11:40
 */

namespace App\Http\Requests\Staff;

use App\Http\Requests\BaseRequests;

class EditCurrentStaffPwd extends BaseRequests
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'old_password' => "required",
            'new_password' => "required",
            're_password' => "required"
        ];
    }

    public function messages()
    {
        return [
            'old_password.required' => "初始密码不能为空",
            'new_password.required' => "新密码不能为空",
            're_password.required' => "确认密码不能为空",
        ];
    }

}